package cn.fay.chapter14;

public class A {
	private String str;
	public A(String str){
		this.str=str;
	}
	public void func1(){
		System.out.println(str+" func1");
	}
	public void func2(){
		A a2=new A("a2");
		func1();
		a2.func1();
	}
	public static void main(String[] args) {
		A a1=new A("a1");
		a1.func2();
	}
}
